home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Programming / MPW Interfaces & Libraries 3.1 / PInterfaces / Notification.p < prev    next >
Encoding:
Text File  |  1989-10-13  |  1.3 KB  |  67 lines  |  [TEXT/MPS ]

  1. {
  2. Created: Tuesday, August 2, 1988 at 8:19 AM
  3.     Notification.p
  4.     Pascal Interface to the Macintosh Libraries
  5.  
  6.     Copyright Apple Computer, Inc.    1988
  7.     All rights reserved
  8. }
  9.  
  10.  
  11. {$IFC UNDEFINED UsingIncludes}
  12. {$SETC UsingIncludes := 0}
  13. {$ENDC}
  14.  
  15. {$IFC NOT UsingIncludes}
  16.     UNIT Notification;
  17.     INTERFACE
  18. {$ENDC}
  19.  
  20. {$IFC UNDEFINED UsingNotification}
  21. {$SETC UsingNotification := 1}
  22.  
  23. {$I+}
  24. {$SETC NotificationIncludes := UsingIncludes}
  25. {$SETC UsingIncludes := 1}
  26. {$IFC UNDEFINED UsingTypes}
  27. {$I $$Shell(PInterfaces)Types.p}
  28. {$ENDC}
  29. {$IFC UNDEFINED UsingOSUtils}
  30. {$I $$Shell(PInterfaces)OSUtils.p}
  31. {$ENDC}
  32. {$SETC UsingIncludes := NotificationIncludes}
  33.  
  34. CONST
  35. nmType = 8;
  36.  
  37.  
  38. TYPE
  39.  
  40. NMRec = RECORD
  41.     qLink: QElemPtr;        {next queue entry}
  42.     qType: INTEGER;         {queue type -- ORD(nmType) = 8}
  43.     nmFlags: INTEGER;        {reserved}
  44.     nmPrivate: LONGINT;     {reserved}
  45.     nmReserved: INTEGER;    {reserved}
  46.     nmMark: INTEGER;        {item to mark in Apple menu}
  47.     nmSIcon: Handle;        {handle to small icon}
  48.     nmSound: Handle;        {handle to sound record}
  49.     nmStr: StringPtr;        {string to appear in alert}
  50.     nmResp: ProcPtr;        {pointer to response routine}
  51.     nmRefCon: LONGINT;        {for application use}
  52.     END;
  53.  
  54.  
  55.  
  56. FUNCTION NMInstall(nmReqPtr: QElemPtr): OSErr;
  57.     INLINE $205F,$A05E,$3E80;
  58. FUNCTION NMRemove(nmReqPtr: QElemPtr): OSErr;
  59.     INLINE $205F,$A05F,$3E80;
  60.  
  61. {$ENDC}    { UsingNotification }
  62.  
  63. {$IFC NOT UsingIncludes}
  64.     END.
  65. {$ENDC}
  66.  
  67.